<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="renderer" content="webkit" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
  <title>千锋教育大前端Vue教学</title>
  <!-- 引入vue -->
  <script src="https://cdn.staticfile.org/vue/3.0.5/vue.global.js"></script>
</head>

<body style="margin:100px;font-size:22px;">
  <div>真假美猴王</div>
  <div id="app">
    <div v-show="false">我是六耳猕猴</div>
    <div v-show="true">我是孙悟空</div>
    <div v-if="score>=90">优秀</div>
    <div v-else-if="score>=60">合格</div>
    <div v-else>不合格</div>
    <button v-on:click="alert('千锋教育')">点击我</button>
  </div>
  <script>
    // 创建应用
    const app = Vue.createApp({
      data() {
        return {
          score: 99,
        };
      }
    });
    // 挂载应用
    app.mount('#app');
  </script>
</body>

</html>